#ifndef __CLIENT_H__
#define __CLIENT_H__

#include <string>
#include <list>
#include <ctime>

namespace tally
{

class TallyClient
{
private:
    std::string                 m_addr;
    short                       m_port;
    int                         m_socket;

    std::list<std::string>      m_msgs;
    
public:
    TallyClient(std::string addr, short port);
    ~TallyClient();

private:
    TallyClient(const TallyClient&) = delete;               // 禁用拷贝构造
    TallyClient& operator=(const TallyClient&) = delete;    // 禁用赋值运算符

    void welcomInterface();
    void userRegistInterface();
    void userLoginInterface();
    void tallyRecordInterface();
};

} // end of namespace

#endif // __CLIENT_H__